﻿using System;
using System.ComponentModel;

namespace UtfprLibrary.EntityFramework.ComponentModel {
    public interface IEntityDataSourceEvents {
        event EventHandler ObjectContextTypeChanging;
        event EventHandler ObjectContextTypeChanged;

        event EventHandler ObjectContextChanging;
        event EventHandler ObjectContextChanged;

        event EventHandler DataSourceChanging;
        event EventHandler DataSourceChanged;

        event CancelEventHandler SavingChanges;
        event EventHandler SavedChanges;

        event CancelEventHandler CancelingChanges;
        event EventHandler CanceledChanges;

        event CancelEventHandler Refreshing;
        event EventHandler Refreshed;

        event CancelEventHandler Adding;
        event EventHandler Added;

        event CancelEventHandler Deleting;
        event EventHandler Deleted;

        event CancelEventHandler FindingById;
        event EventHandler FoundById;

        event EventHandler<DataErrorEventArgs> DataError;
    }
}
